package com.example.hello.pojo;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class CommentResponse {
    private Long id;
    private Long userId;
    private String userAvatar;
    private String userNickname;
    private Long parentId;      // null = 根评论
    private Long toUserId;      // null = 根评论
    private String toUserNickname; // 仅回复时才有
    private String content;
    private String createdAt;   // ISO 时间 字符串
    private List<CommentResponse> replies;
}